package com.niubility.entity;

import java.io.Serializable;

/*
资料对象
 */
public class Datas implements Serializable, Comparable<Datas> {
    private int daId;
    private int userId=000000000;
    private int depId=000000000;
    private String daName;//2018-1-28添加
    private String daDate;
    private String daUrl;
    private String daMark = "其他";
    private String daInfo;
    private int daTraffic = 0;//访问量
    public String getDaName() {
        return daName;
    }

    public String getDaInfo() {
        return daInfo;
    }

    public void setDaInfo(String daInfo) {
        this.daInfo = daInfo;
    }

    public int getDaTraffic() {
        return daTraffic;
    }

    public void setDaTraffic(int daTraffic) {
        this.daTraffic = daTraffic;
    }

    public void setDaName(String daName) {
        this.daName = daName;
    }

    public String getDaMark() {
        return daMark;
    }

    public void setDaMark(String daMark) {
        this.daMark = daMark;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getDepId() {
        return depId;
    }

    public void setDepId(int depId) {
        this.depId = depId;
    }

    public int getDaId() {

        return daId;
    }

    public void setDaId(int daId) {
        this.daId = daId;
    }

    public String getDaDate() {
        return daDate;
    }

    public void setDaDate(String daDate) {
        this.daDate = daDate;
    }

    public String getDaUrl() {
        return daUrl;
    }

    public void setDaUrl(String daUrl) {
        this.daUrl = daUrl;
    }

    @Override
    public String toString() {
        return "Datas{" +
                "daId=" + daId +
                ", userId=" + userId +
                ", depId=" + depId +
                ", daName='" + daName + '\'' +
                ", daDate='" + daDate + '\'' +
                ", daUrl='" + daUrl + '\'' +
                ", daMark='" + daMark + '\'' +
                ", daInfo='" + daInfo + '\'' +
                ", daTraffic=" + daTraffic +
                '}';
    }

    public int compareTo(Datas o) {
        return o.daDate.compareTo(this.daDate);
    }
}
